package reader.utils;

import org.apache.commons.codec.digest.DigestUtils;

public class MD5Utils {
    public static String md5(String input, Integer salt) {
        char[] chars = input.toCharArray();
        byte[] bytes = new byte[chars.length];
        for (int i = 0; i < chars.length; i++) {
            bytes[i] = (byte) chars[i];
        }
        String target = new String(bytes);
        return DigestUtils.md5Hex(target);
    }
}
